home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 50
/
Volume 50 - JOGO DISK .iso
/
Games
/
miffypuzzle.swf
/
scripts
/
frame_2
/
PlaceObject2_33_401
/
CLIPACTIONRECORD onClipEvent(load).as
Wrap
Text File
|
2007-09-27
|
2KB
|
65 lines
onClipEvent(load){
function pieceLoad()
{
pieceRandom = _root.piecesRandomArray[thisPiece - 1];
piecesAtStart = _root.piecesAtStart;
this._x = piecesAtStart[pieceRandom * 2 - 2];
this._y = piecesAtStart[1 + pieceRandom * 2 - 2];
if(newPuzzle == 1)
{
pieceRandom = _root.piecesRandomArray[thisPiece - 1];
piecesAtStart = _root.piecesAtStart;
this._x = piecesAtStart[pieceRandom * 2 - 2];
this._y = piecesAtStart[1 + pieceRandom * 2 - 2];
newPuzzle = 0;
}
}
thisPiece = 15;
xNumber = 2;
yNumber = 3;
pieceLoad();
this.M_background01._visible = 0;
this.M_background02._visible = 0;
this.M_background03._visible = 0;
this.M_background04._visible = 0;
this.M_background05._visible = 0;
if(xNumber >= 1)
{
this.M_background01._x -= 61.5 * xNumber;
this.M_background02._x -= 61.5 * xNumber;
this.M_background03._x -= 61.5 * xNumber;
this.M_background04._x -= 61.5 * xNumber;
this.M_background05._x -= 61.5 * xNumber;
}
if(yNumber >= 1)
{
this.M_background01._y -= 61.5 * yNumber;
this.M_background02._y -= 61.5 * yNumber;
this.M_background03._y -= 61.5 * yNumber;
this.M_background04._y -= 61.5 * yNumber;
this.M_background05._y -= 61.5 * yNumber;
}
if(_root.puzzleNumber == 1)
{
this.M_background01._visible = 1;
}
else if(_root.puzzleNumber == 2)
{
this.M_background02._visible = 1;
}
else if(_root.puzzleNumber == 3)
{
this.M_background03._visible = 1;
}
else if(_root.puzzleNumber == 4)
{
this.M_background04._visible = 1;
}
else if(_root.puzzleNumber == 5)
{
this.M_background05._visible = 1;
}
_root.dupXX._x = _root.xpos;
_root.dupXX._y = _root.ypos;
}